package com.yuke.cloud.service.pmc.service.impl;

import com.yuke.cloud.common.core.support.BaseService;
import com.yuke.cloud.service.pmc.dao.ProdClassMapper;
import com.yuke.cloud.service.pmc.dto.ProdCategoryClassDto;
import com.yuke.cloud.service.pmc.entity.ProdClass;
import com.yuke.cloud.service.pmc.service.ProdClassService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by zn on 2020/11/26.
 */
@Service
@Transactional
public class ProdClassServiceImpl extends BaseService<ProdClass> implements ProdClassService {
    @Resource
    private ProdClassMapper prodClassMapper;

    @Override
    public List<ProdCategoryClassDto> getBindClassByCategoryId(Long categoryId) {
        return prodClassMapper.getBindClassByCategoryId(categoryId);
    }

    @Override
    public List<ProdClass> findClassSubCategory(Long categoryId,String tag){

        List<ProdClass> prodClass = prodClassMapper.findClassSubCategory(categoryId,tag);
        return prodClass;
    }
}
